package com.guangyunl.c_final_method;
// eat方法 被final修饰，导致eat方法无法被重写
public class Dog extends Animal{
//    @Override
//    'eat()' cannot override 'eat()' in 'com.guangyunl.c_final_method.Animal'; overridden method is final
//    public final void eat(){
//        System.out.println("Dog要吃饭");
//    }
}
